<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8">
  <title>收货地址</title>
  <meta name="viewport"
    content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no, viewport-fit=cover" />
  <link href="phoneContent/plugin/mui/css/mui.css" rel="stylesheet" />
  <link rel="stylesheet" type="text/css" href="phoneContent/css/style.css" />
  <link rel="stylesheet" href="phoneContent/plugin/mui/css/mui.picker.css">
  <link rel="stylesheet" href="phoneContent/plugin/mui/css/mui.poppicker.css">
  <link rel="stylesheet" href="phoneContent/css/Fit.css">
  <style type="text/css">
    .memberInfo_box .mbInfo li select {
      flex: 2;
      padding: 10px 0;
      border: none;
      margin: 0;
    }

    .Voucher {
      flex: 1;
      padding: 10px 0;
      border: none;
      margin: 0;
      max-height: 120px;
    }

    body {
      overflow-y: auto;
    }

    .mui-content {
      margin-bottom: 80px;
      padding-bottom: 0;
    }

    .code-img {
      width: 50px;
      height: 50px;
      margin-left: 10px;
    }
  </style>
</head>

<body>
  <header class="mui-bar mui-bar-nav bgRed headerTop">
    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
    <h1 class="mui-title">修改密码</h1>
  </header>
  <div class="mui-content memberInfo_box" id="content">
    <ul class="mbInfo mbInfo1">
      <li><span>新密码</span><input value="" type="text" id="password" placeholder="输入新密码"></li>
    </ul>
    <button class="mui-btn mui-btn-block mui-btn-primary" id="subPay">确定</button>
  </div>

  <script src="phoneContent/js/jquery-3.3.1.js" type="text/javascript" charset="utf-8"></script>
  <script src="phoneContent/plugin/mui/js/mui.js" type="text/javascript" charset="utf-8"></script>
  <script src="phoneContent/js/appcontent.js" type="text/javascript" charset="utf-8"></script>
  <script src="phoneContent/plugin/mui/js/mui.picker.min.js"></script>
  <script src="phoneContent/js/Fit.js"></script>
  <script>
    var token = getToken();
    let userx = JSON.parse(window.localStorage.getItem('userInfo'));
    let user = null;
    $("#subPay").click(function () {
      let users = {
        nickname: userx.name,
        zname: userx.zName,
        mobile: userx.mobile,
        id: userx.id,
        name: userx.name,
        userName: userx.userName,
        password: $('#password').val(),
      }
      if (checkJson(users) == false) {
        mui.alert("请填写完整");
        return false;
      }
      var res = playPut('/v1/api/users/cz/no', "", users, token);
      if (res.code == 200) {
        mui.alert("修改成功");
        setTimeout(() => {
          location.href = "memberCenter.html"
        }, 1000);
      } else {
        mui.alert(res.msg);
      }
    });
  </script>
</body>

</html>